package items;

import java.util.ArrayList;

/*
 * Defines ores
 */
public enum Ores {
	AdOre ("Adamantite Ore", 449),
	CuOre ("Copper Ore", 436),
	AuOre ("Gold Ore", 444),
	FeOre ("Iron Ore", 440),
	MiOre ("Mithril Ore", 447),
	RuOre ("Runite Ore", 451),
	AgOre ("Silver Ore", 442),
	SnOre ("Tin Ore", 438),
	Coals ("Coal", 453);
	
	public static final String group = "ores";
	private String itemName;
	private int itemNumber;

	public int getItemNumber() {
		return itemNumber;
	}

	public void setItemNumber(int itemNumber) {
		this.itemNumber = itemNumber;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	Ores(String itemName, int itemNumber) {
		this.setItemName(itemName);
		this.setItemNumber(itemNumber);
	}

	@Override
	public String toString() {
		Number string = getItemNumber();
		return string.toString();
	}
	
	public static boolean itemCategory(String category) {
		return category.equalsIgnoreCase("ores") ? true : false;
	}
	
	public static ArrayList<String> itemNameList() {
		ArrayList<String> itemList = new ArrayList<String>();
		for(Ores items : Ores.values()) {
			itemList.add(items.getItemName());
		}
		return itemList;
	}
	
	public static ArrayList<String> itemNumberList() {
		ArrayList<String> itemNumberList = new ArrayList<String>();
		for(Ores items : Ores.values()) {
			itemNumberList.add(items.toString());
		}
		return itemNumberList;
	}
}
